• Go to and drag out if else. Drop it inside the click() event.
  • Delete the default if statement and replace it with if is_drawing:
  • Go to and drop in Pen Up after the if statement. Make sure to indent.
  • Go to and drop in Pen Down after the else statement. Make sure to indent.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)